preserveVariables
Type
property
Summary
Specifies that the values of script-local variables should be preserved across recompilations of the script.
Syntax
set the preserveVariables to {true | false}
Description
Set the preserveVariables to true to make LiveCode remember values of script-local variables across recompilation of the script. Script recompilation occurs when an object's script property is set. This property affects only variables at script scope, that do not have an initializer.
The preserveVariables property is provided as a background compatibility aid. It should not, in general, be used in user scripts as the IDE automatically handles preservation of variables via the Variable Preservation option in the preferences and Script Editor Script menu.
Examples
set the preserveVariables to true
Related
command: local
Compatibility and Support
Introduced
LiveCode 1.0
OS
mac
windows
linux
ios
android
Platforms
desktop
server
mobile